var app=angular.module('myApp',['ui.router']).config(["$stateProvider","$urlRouterProvider",function ($stateProvider,$urlRouterProvider) {
    $stateProvider.state('save',{
        url:"/save",
        controller:"save",
        templateUrl:"updata.html"
    }).state("update",{
        url:"/update/:id",
        controller:"update",
        templateUrl:"updata.html"
    }).state('home',{
        url:"/home",
        controller:"homepage",
        templateUrl:"homepage.html"
    });
    $urlRouterProvider.otherwise("home");
}])